﻿using Orchard.ContentManagement.MetaData;
using Orchard.Core.Contents.Extensions;
using Orchard.Data.Migration;


namespace Hazza.eLearning
{
    public class Migrations : DataMigrationImpl
    {
        public int Create()
        {
            ContentDefinitionManager.AlterPartDefinition("HazzaExamPart", part => part
                .Attachable()
                .WithDescription("Turns the content type into an exam"));

            return 1;
        }
    }
}